package com.lelouch.examplecode.designpattern.proxy.dynamic.cglib;

import com.lelouch.examplecode.designpattern.proxy.staticd.Person;
import com.lelouch.examplecode.designpattern.proxy.staticd.Son;

/**
 * @author lcy
 * @create 2018-10-10 14:41
 */
public class CglibproxyTest {
    public static void main(String[] args) {
        Person person = new Son();
        CglibProxy cglibProxy = new CglibProxy();
        Son cglibProxyInstance = (Son) cglibProxy.getInstance(person);
        cglibProxyInstance.findLove();
        cglibProxyInstance.rentHouse();
        cglibProxyInstance.toString();
    }

}
